import Vue from 'vue';
import Router from 'vue-router';
const Index = () =>
  import( /* webpackChunkName: "home */ 'components/index/index'); //首页
const BaseData = () =>
  import( /* webpackChunkName: "home */ 'components/BaseData/index'); //基本信息
const SyxxData = () =>
  import( /* webpackChunkName: "home */ 'components/syxx'); //失业登记
const JyxxData = () =>
  import( /* webpackChunkName: "home */ 'components/jyxx'); //个人就业登记

const SearchList = () =>
  import( /* webpackChunkName: "home */ 'components/search/searchList'); //失业登记查询列表
const SearchDetail = () =>
  import( /* webpackChunkName: "home */ 'components/search/searchDetail'); //失业登记查询详情

const Sydjzx = () =>
  import( /* webpackChunkName: "home */ 'components/sydjzx/sydjzx'); //失业登记注销
const SydjzxDetail = () =>
  import( /* webpackChunkName: "home */ 'components/sydjzx/sydjzxDetail'); //失业登记注销查询
const XxbgData = () =>
  import( /* webpackChunkName: "home */ 'components/xxbg/xxbg'); //信息变更
  const XxbgDetail = () =>
  import( /* webpackChunkName: "home */ 'components/xxbg/xxbgDetail'); //信息变更查询
Vue.use(Router);

export default new Router({
  // mode: 'history',
  // base: '/dist',
  routes: [
    {
      path: '/',
      redirect: '/index',
    },
    {
      path: '/index',
      name: 'index',
      component: Index,
      meta: {
        title: '首页'
      }
    },
    {
      path: '/baseData',
      name: 'baseData',
      component: BaseData,
      meta: {
        title: '基本信息'
      }
    },
    {
      path: '/syxxData',
      name: 'syxxData',
      component: SyxxData,
      meta: {
        title: '失业登记'
      }
    },
    {
      path: '/jyxxData',
      name: 'jyxxData',
      component: JyxxData,
      meta: {
        title: '个人就业登记'
      }
    },
    {
      path: '/searchList',
      name: 'searchList',
      component: SearchList,
      meta: {
        title: '失业登记查询'
      }
    },
    {
      path: '/searchDetail',
      name: 'searchDetail',
      component: SearchDetail,
      meta: {
        title: '失业登记查询'
      }
    },
    {
      path: '/sydjzx',
      name: 'sydjzx',
      component: Sydjzx,
      meta: {
        title: '失业登记注销'
      }
    },
    {
      path: '/sydjzxDetail',
      name: 'sydjzxDetail',
      component: SydjzxDetail,
      meta: {
        title: '失业登记注销查询'
      }
    }, {
      path: '/xxbgData',
      name: 'xxbgData',
      component: XxbgData,
      meta: {
        title: '信息变更'
      }
    },{
      path: '/xxbgDetail',
      name: 'xxbgDetail',
      component: XxbgDetail,
      meta: {
        title: '信息变更查询'
      }
    }
  ]
});
